import { applyMiddleware, createStore } from 'redux'
import thunk from 'redux-thunk'; // 异步
import createLogger from 'redux-logger' // redux更新日志打印
import reducer from './reducers'

//创建store
const store = createStore(
  reducer,
  applyMiddleware(thunk, createLogger)
);

export default store